package File操作;

import java.io.File;
import java.util.Arrays;

public class 获取下一级子文件或目录 {
    public static void main(String[] args) {
        File f = new File("C:/Test/2");
        File[] children = f.listFiles();
        System.out.println(Arrays.toString(children));
    }
}
